package c.j.a.d.b.i.a;

import android.os.Handler;
import android.os.HandlerThread;
import android.os.Process;
import java.util.Objects;

/* compiled from: DownloadPreconnecter */
public class b {
    public static final HandlerThread a;
    public static final Handler b;
    public static long c;
    public static long d;

    /* compiled from: DownloadPreconnecter */
    public static class a implements Runnable {
        public void run() {
            try {
                Process.setThreadPriority(10);
            } catch (Throwable unused) {
            }
        }
    }

    static {
        HandlerThread handlerThread = new HandlerThread("Downloader-preconnecter");
        a = handlerThread;
        c.j.a.d.b.l.a aVar = c.j.a.d.b.l.a.f;
        c = aVar.c("preconnect_connection_outdate_time", 300000);
        d = aVar.c("preconnect_head_info_outdate_time", 300000);
        a aVar2 = c.j.a.d.b.i.a.a.b.a;
        aVar.b("preconnect_max_cache_size", 3);
        Objects.requireNonNull(aVar2);
        handlerThread.start();
        Handler handler = new Handler(handlerThread.getLooper());
        b = handler;
        handler.post(new a());
    }
}
